package com.fitso.model.bean.measure.time;

import java.math.BigDecimal;

public class Hour extends Time {
	private static final long serialVersionUID = 1L;
	
	private static final BigDecimal FROM_BASE = BigDecimal.valueOf(0.000277777778);
	private static final BigDecimal TO_BASE = BigDecimal.valueOf(3600);

	public Hour() {
		super();
	}
	
	public Hour(Integer value){
		super(value);
	}
	
	public Hour(Double value){
		super(value);
	}

	public Hour(BigDecimal value) {
		super(value);
	}

	public Hour(Time time) {
		super(time);
	}

	protected BigDecimal getToBaseUnitFactor() {
		return TO_BASE;
	}

	protected BigDecimal getFromBaseUnitFactor() {
		return FROM_BASE;
	}

	public String getUnitMark() {
		return "hours";
	}
}
